package com.wontube.core.conf.dogs;

import com.wontube.core.cache.Cacher;

/**
 * @author yuechao
 *
 */
public class CacherConfWatchDog extends FileWatchDog {
	/**
	 * @param confPath
	 */
	public CacherConfWatchDog(String confPath) {
		super(confPath);
	}
	
	/* 
	 * @see core.pub.FileWatchDog#doOnChange()
	 */
	@Override
	protected void doOnChange() {
		Cacher.defaultCacher.createLocalCacher(super.file);
	}
	
	@Override
	protected String getFilename() {
		return "ehcache.xml";
	}
}
